import request from '@/utils/request'

// 查询注册用户信息列表
export function listHospitalUser(query) {
  return request({
    url: '/hospital/hospitalUser/list',
    method: 'get',
    params: query
  })
}

// 查询注册用户信息详细
export function getHospitalUser(id) {
  return request({
    url: '/hospital/hospitalUser/' + id,
    method: 'get'
  })
}

// 新增注册用户信息
export function addHospitalUser(data) {
  return request({
    url: '/hospital/hospitalUser',
    method: 'post',
    data: data
  })
}

// 修改注册用户信息
export function updateHospitalUser(data) {
  return request({
    url: '/hospital/hospitalUser',
    method: 'put',
    data: data
  })
}

// 删除注册用户信息
export function delHospitalUser(id) {
  return request({
    url: '/hospital/hospitalUser/' + id,
    method: 'delete'
  })
}

// 禁用用户
export function disabled(id) {
  return request({
    url: '/hospital/hospitalUser/disabled',
    method: 'put',
    params: {id:id}
  })
}

// 禁用用户
export function enable(id) {
  return request({
    url: '/hospital/hospitalUser/enable',
    method: 'put',
    params: {id:id}
  })
}
